﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TextInfoAdd.aspx.cs" Inherits="Backend_TextInfoAdd" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>信息编辑</title>
    <link href="!css/content.css" rel="stylesheet" type="text/css" />
    <script src="!js/jquery-1.7.1.js" type="text/javascript"></script>
    <script src="!js/default.js" type="text/javascript"></script>
    <script src="!js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $('[id$=txtPublishTime]').focus(function () {
                WdatePicker({
                    readOnly: true
                });
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td class="bgleft" valign="top">
                    <img src="/Backend/images/left-top-right.gif" />
                </td>
                <td class="bgcenter" valign="top">
                    <div class="title">
                        <%=SiteMapName %>编辑</div>
                </td>
                <td class="bgright" width="16" valign="top">
                    <img src="/Backend/images/nav-right-bg.gif" />
                </td>
            </tr>
            <tr class="main">
                <td class="bgleft" valign="middle">
                    &nbsp;
                </td>
                <td valign="top">
                    <!--Content-->
                    <div class="content">
                        <div class="list_title">
                            基本信息</div>
                        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="table">
                            <tr>
                                <td class="t_right t_header">
                                    所属栏目
                                </td>
                                <td>
                                    <%=SiteMapName %>
                                </td>
                            </tr>
                            <tr>
                                <td class="t_right">
                                    所属公司<span class="red">*</span>
                                </td>
                                <td>
                                    <asp:DropDownList runat="server" ID="ddlCompany">
                                        <asp:ListItem Text="text1" />
                                        <asp:ListItem Text="text2" />
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td class="t_right">
                                    新闻标题<span class="red">*</span>
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtTitle" class="txt long" />
                                </td>
                            </tr>
                            <tr>
                                <td class="t_right">
                                    副标题
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtSubTitle" class="txt long" />
                                </td>
                            </tr>
                            <tr>
                                <td class="t_right">
                                    作者
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtAuthor" class="txt medium" />
                                </td>
                            </tr>
                            <tr>
                                <td class="t_right">
                                </td>
                                <td>
                                    <asp:CheckBox Text="是否置顶" runat="server" ID="cbxIsTop" /><span class="red">*</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="t_right">
                                    正文<span class="red">*</span>
                                </td>
                                <td>
                                    <CKEditor:CKEditorControl ID="txtContent" runat="server" BasePath="~/Backend/!js/ckeditor"
                                        ContentsCss="~/Backend/!js/ckeditor/contents.css"></CKEditor:CKEditorControl>
                                </td>
                            </tr>
                            <tr>
                                <td class="t_right">
                                    关键字
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtKeyWords" class="txt long" />（使用 , 分隔）
                                </td>
                            </tr>
                            <tr>
                                <td class="t_right">
                                    引用路径
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtReferenceUrl" class="txt long" />
                                </td>
                            </tr>
                            <tr>
                                <td class="t_right">
                                    发布时间<span class="red">*</span>
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtPublishTime" class="txt medium" />
                                </td>
                            </tr>
                            <tr>
                                <td class="t_right">
                                    PDF上传
                                </td>
                                <td colspan="2">
                                    <asp:FileUpload ID="FileUpload2" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td class="t_right">
                                    PDF路径
                                </td>
                                <td>
                                    <asp:Label Text="" ID="lbSourcePath" runat="server" />
                                    &nbsp;&nbsp;&nbsp;
                                    <asp:LinkButton Text="" ToolTip="点击删除" ID="lbtnDelSource" runat="server" OnClientClick="return confirm('确认删除此文件？')"
                                        OnClick="DeleteSource" />
                                </td>
                            </tr>
                        </table>
                        <div class="t_center">
                            <asp:Button ID="btnSubmit" runat="server" Text="确定" OnClick="btnSubmit_Click" />
                        </div>
                    </div>
                    <!--Content-->
                </td>
                <td class="bgright">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="bg_bottom_left" valign="bottom">
                    &nbsp;
                </td>
                <td class="bg_bottom_center">
                </td>
                <td class="bg_bottom_right" valign="bottom">
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
